package com.mhy.book.service.impl;

import com.mhy.book.mapper.BookMapper;
import com.mhy.book.service.BookService;
import lombok.*;


@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class BookServiceImpl2 implements BookService {


    BookMapper bookMapper;
    String name;
    Integer age;

    @Override
    public void queryBook() {
        System.out.println("V2"+this.age);
        System.out.println(this.name);
        System.out.println("booksss");
        String res = bookMapper.selectById(1);
        System.out.println(res);
    }
}
